package com.feisuanyz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feisuanyz.pojo.domain.MealSelectionDO;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * MealSelectionMapper
 *
 * @author Chenke Zhao
 * @date 2025-03-06 10:18:05
 */
public interface MealSelectionMapper extends BaseMapper<MealSelectionDO> {

    /**
     * 通过用户ID和食物ID以及选择时间查询选择记录
     *
     * @Param wrapper 查询条件
     * @Return 食物选择记录对象
     */
    MealSelectionDO selectOne(QueryWrapper<MealSelectionDO> wrapper);
}
